Platform Explorer / Nuxeo Platform LTS 2016 8.10

Contribution org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingContrib--errorhandlers

This contribution is part of XML component org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingContrib inside nuxeo-platform-web-common-8.10.jar /OSGI-INF/exception-handling-contrib.xml

Extension Point

Extension point errorhandlers of component ExceptionHandlingService.

Contributed Items

  • <errorHandlers bundle="messages" defaultpage="/nuxeo_error.jsp" loggerName="nuxeo-error-log">
          <handlers>
            <handler code="404" error=".*DocumentNotFoundException" message="Error.Document.Not.Found"/>
            <handler code="403" error=".*SecurityException" message="Error.Insuffisant.Rights" page="/nuxeo_error_security.jsp"/>
            <handler code="500" error=".*" message="Error.Unknown"/>
          </handlers>
        </errorHandlers>

XML Source

<extension point="errorhandlers" target="org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingService">
    <errorHandlers bundle="messages" defaultpage="/nuxeo_error.jsp" loggerName="nuxeo-error-log">
      <handlers>
        <handler code="404" error=".*DocumentNotFoundException" message="Error.Document.Not.Found"/>
        <handler code="403" error=".*SecurityException" message="Error.Insuffisant.Rights" page="/nuxeo_error_security.jsp"/>
        <handler code="500" error=".*" message="Error.Unknown"/>
      </handlers>
    </errorHandlers>
  </extension>